<%
	String serverName = request.getServerName();
	String port = String.valueOf(request.getServerPort());

	String latitude  = request.getParameter("latitude");
	String longitude = request.getParameter("longitude");
	String width = request.getParameter("width");
	String height = request.getParameter("height");
	String contents = request.getParameter("contents").replaceAll("\r","<br/>");
	String zoom = request.getParameter("zoom");
	
	System.out.println("serverName" + serverName);
	System.out.println("port" + port);
	System.out.println("latitude" + latitude);
	System.out.println("longitude" + longitude);
	System.out.println("width" + width);
	System.out.println("height" + height);
	System.out.println("contents" + contents);
	System.out.println("zoom" + zoom);
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<title>약도 만들기</title>
<link rel="stylesheet" type="text/css" href="/map/css/map.css"/>
<script type="text/javascript" src="/common/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
/**
 * 창 닫기
 */
function closeMapWindow() {
	self.close();	  
}
</script>
</head>
<body>
<form method="post" name="mapFrm" onsubmit="return false;">
<div id="wrap">
	<div id="header"><div class="mapText">약도 만들기- 코드 생성(3/3)</div></div>
	<div id="body">
		<div id="codeView">
			<div id="codeHeader"><span class="boldFont">3단계:: 코드 생성</span></div>
			<div id="codeBody">
				<div id="codeContents">
					<div id="codeHdTxt">코드 생성이 <span class="impTxt">완료</span> 되었습니다.</div>
					<div id="codeTxt">아래의 태그를 원하시는 곳에 붙여 넣기 하시면 바로 다음 지도를 사용할 수 있습니다.</div>
					<div id="code"><div id="realCode">&lt;iframe src="http://<%=serverName %>:<%=port %>/map/map_view.jsp?width=<%=width%>&height=<%=height%>&latitude=<%=latitude%>&longitude=<%=longitude%>&contents=<%=contents%>&zoom=<%=zoom%>" width="<%=width%>" height="<%=height%>+35" scrolling="no" frameborder="0"&gt;&lt;/iframe&gt;</div></div>
				</div>
			</div>
		</div>
	</div>
	<div id="footer">
		<div id="nextBtn">
			<a href="javascript:history.back(-1);"><img src="/common/images/btn_before.gif"/></a>
			<%--
			<a href="javascript:closeMapWindow();"><img src="img/btn_win_close.png"/></a>
			 --%>
		</div>
		</div>
</div>
</form>
</body>
</html>